package com.kailing.bootbatch.dynamicdemo2;

import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * <h3>partitionjob</h3>
 * <p>Spring @Scheduled定时任务动态修改cron参数</p>
 * https://blog.csdn.net/zhao1949/article/details/54863624?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task
 *
 *
 对于这种需求， 可以利用 TaskScheduler 借口来实现,实现方法有两种
 启动定时,关闭定时，使用新参数启动定时
 使用自定义的Trigger启动定时，更改参数
 *
 * @author : hduong
 * @version : 1.0
 * @date : 2020-03-20 16:14
 **/
@SpringBootApplication
@EnableScheduling
@EnableBatchProcessing
public class UpdateParamsApp {
    public static void main(String[] args) {
        SpringApplication.run(UpdateParamsApp.class, args);
    }
}
